package com.lzy.product.service.impl;

import com.lzy.framework.core.utils.DozerUtils;
import com.lzy.product.dao.ProductClassifyDeptMapperExt;
import com.lzy.product.dtos.ProductClassifyDeptDto;
import com.lzy.product.entity.ProductClassifyDeptKey;
import com.lzy.product.service.ProductClassifyDeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by WIN7 on 2017/11/30.
 */
@Service
public class ProductClassifyDeptServiceImpl implements ProductClassifyDeptService {

    @Autowired
    ProductClassifyDeptMapperExt productClassifyDeptMapperExt;

    @Override
    public Long insert(ProductClassifyDeptDto dto) {
        return productClassifyDeptMapperExt.insert(DozerUtils.map(dto, ProductClassifyDeptKey.class)) > 0 ? 1L : 0L;
    }

    @Override
    public Boolean update(ProductClassifyDeptDto dto) {
        return null;
    }

    @Override
    public Boolean delete(Long id) {
        return null;
    }

    @Override
    public Boolean remove(Long id) {
        return null;
    }

    @Override
    public ProductClassifyDeptDto findById(Long id) {
        return null;
    }

    @Override
    public List<ProductClassifyDeptDto> query(ProductClassifyDeptDto dto) {
        return null;
    }

    @Override
    public List<ProductClassifyDeptDto> selectProductClassifyDept(ProductClassifyDeptDto dto) {
        return productClassifyDeptMapperExt.selectProductClassifyDept(dto);
    }

    @Override
    public Integer delByKey(ProductClassifyDeptDto dto) {
        return productClassifyDeptMapperExt.delByKey(dto);
    }
}
